package com.weixing.mall.provider.model.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.weixing.mall.core.support.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 商品模块-购物车
 * </p>
 *
 * @author Small
 * @since 2019-11-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("gds_shop_cart")
public class ShopCart extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 会员ID
     */
    private Long memberId;

    /**
     * 商品ID
     */
    private Long productId;

    /**
     * 商品数量
     */
    private Integer quantity;

    /**
     * 状态 1未选中；2已选中 ； 3已购买
     */
    private Integer status;

    /**
     * 加入购物车时价格
     */
    private BigDecimal price;

    /**
     * 乐观锁
     */
    private Integer revision;


    /**
     * 创建时间
     */
    private Date createdTime;


    /**
     * 更新时间
     */
    private Date updatedTime;


}
